package com.itheima.itheima_health.mapper;

import com.itheima.itheima_health.pojo.Setmeal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetmealMapper {
    @Select("select * from t_setmeal")
    List<Setmeal> getAllSetmeal();
    @Select("select * from t_setmeal where id = #{id}")
    Setmeal findById(Integer id);
    @Select("select checkgroup_id from t_setmeal_checkgroup where setmeal_id = #{id}")
    Integer[] checkGroupIdsgetBysetmealId(Integer id);
}
